# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=easytag
pkgver=2.4.3
pkgrel=5
pkgdesc="audio file metadata editor"
url="https://wiki.gnome.org/Apps/EasyTAG"
arch="all"
license="GPL-2.0-only AND GPL-3.0-only"
makedepends="
	flac-dev
	desktop-file-utils
	gtk+3.0-dev
	intltool
	itstool
	id3lib-dev
	libid3tag-dev
	libogg-dev
	libvorbis-dev
	speex-dev
	opus-dev
	opusfile-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/easytag/${pkgver%.*}/easytag-$pkgver.tar.xz"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make appdataxmldir=/usr/share/metainfo DESTDIR="$pkgdir" install
}

sha512sums="
ef596341772ce7da3b7feec2c82a20ca29d25c2496074c469be5b8dd75d2b2718e689310e0d61de53bc29a4f54ce9f853a336e1a35076046fd107afd28699087  easytag-2.4.3.tar.xz
"
